<div class="left_part">
        	<div>
            	<strong>
             Find an Escort Near You         
               </strong>
            </div>
            <?php echo form_open('directory');?>
            <div class="signUp_area">
            	<ul>
                	<li>
                    	<div class="div_list07">Cities:</div>
                    	<div class="div_list08">
                        
                             	<select name="province_id" class="dir_select" style="width:181px;">
                                <option value="">Select cities</option>
                                <?php if(!empty($region_list)){
                              foreach($region_list as $key =>$value){
                             if($value['country'] == '2541')
                            $region_list_1[] = $value;
                            
                            if($value['country'] == '2540')
                            $region_list_2[] = $value;
 
                                             }
                            }
                            if(!empty($region_list_1)): ?><optgroup label="Standard Cities" >
                                <?php foreach($region_list_1 as $key=>$value): ?>
                                <option value="<?php echo $value['id']?>" <?php echo ($company_detail['region_id']==$value['id'])?'selected':'';?>><?php echo $value['name'] ?></option>
                                <?php endforeach;?></optgroup>
                                <?php endif;
                             if(!empty($region_list_2)): ?><optgroup label="International Cities" >
                                <?php foreach($region_list_2 as $key=>$value): ?>
                                <option value="<?php echo $value['id']?>" <?php echo ($company_detail['region_id']==$value['id'])?'selected':'';?>><?php echo $value['name'] ?></option>
                                <?php endforeach;?></optgroup>
                                <?php endif;
                            
                            ?> 
                                </select>
                            
                        
                        </div>
                    	<div class="clear"></div>
                 	</li>
                    <li>
                    	<div class="div_list07">Categories:</div>
                    	<div class="div_list08">
                        	<select class="long" name="services" style="width:181px;">
                            <option value="all_services" <?php if($services == "all_services"){?> selected="selected" <?php } ?>>ALL Categories</option>
                           
                            <?php $count = 0; $count_web = 0; foreach($services_list as $service){ if($service['services']=='Category'){?> ?>
                            <option value="<?php echo $service['id']; ?>" <?php if($services == $service['id']){?> selected="selected" <?php } ?>><?php echo strtolower($service['name']); ?></option>
                            <?php } } ?>
                            
                            </select> 
                        </div>
                    	<div class="clear"></div>
                 	</li>
                     <li>
                    	<div class="div_list07">Search:</div>
                    	<div class="div_list08">
                        <input id="search" class="dir_searchtxt" name="search" type="text" value="<?php if(!empty($search)){echo $search;}else{ echo "";}?>" onclick="this.select();" >
                        </div>
                    	<div class="clear"></div>
                 	</li>
                </ul>
                <div class="double_line2">
                    	<div class="submitDiv">
                    	<input type="submit" name="submit" value="submit" />
                       <a href="<?php echo site_url('search') ?>" style="color:#ffffff;"><strong>advance</strong></a> 
                    </div>
                </div>
            </div>
            <?php echo form_close();?>
            
            <?php if($this->Directory_user_model->check_login()){?>   
                       <div class="div08 signUp_area">
                    	<h3 class="head03">Advertiser Administration</h3>
                    </div>
                    <div class="line1"></div>
                    <div class="height10"></div>
                    <div class="div009 signUp_area">
                    	<ul>
                        	<li><a <?php if(!empty($login_info)){ ?>class="on"<?php } ?> href="<?php echo site_url('directory/panel/login'); ?>" >Login Details</a></li>
                            <li><a <?php if(!empty($company_info)){ ?>class="on"<?php } ?>href="<?php echo site_url('directory/panel/company'); ?>" >Ads Details</a></li>
                            
                            <li><a <?php if(!empty($products) && $productType == 'services'){ ?>class="on"<?php } ?>href="<?php echo site_url('directory/panel/products/services'); ?>" >Services</a></li>
                            
                            
                            <li><a <?php if(!empty($photo)){ ?>class="on"<?php } ?>href="<?php echo site_url('directory/panel/photo'); ?>" >Gallery</a></li>
                            
                          <!--  <li><a <?php //if(!empty($delete)){ ?>class="on"<?php //} ?>href="<?php// echo site_url('directory/panel/delete_advert'); ?>" >Delete your advert</a></li>-->
                          <li><a <?php if(!empty($delete)){ ?>class="on"<?php } ?>href="<?php echo site_url('directory/panel/package'); ?>" >Manage Your Ads</a></li>
                            <li><a  class="on" href="<?php echo site_url('directory/logout'); ?>" >Log Out</a></li>
                        </ul>
                    </div>
                    
                    <div class="line"></div>
                    <div style="font-size:14px;">
                    <p class="boxo signUp_area"><strong>Statistics:</strong><br style="margin-bottom:3px;">
                        Your advert has been viewed <strong style="margin-bottom:3px; color:#CF118C;"><?php echo $view_count ?></strong> times<br>
                        Your advert has generated <strong style="color:#CF118C;"><?php echo $lead_count ?></strong> enquiries
                    </p>
                    </div>
                    <?php }else{?>
                           
                            
                            <div class="signUp_area">
                            	<b>Are you An Escort Or Adult Entertainer ? </b>
                                <div class="height10"></div>
                                <p class="txt12">List your profile on Kyprisguide.com 
                                 <a class="" style="color:#FFF;" href="<?php echo base_url('')?>directory/advertise"><br /><b class="purple">Click here</b></a> to find out more.</p>
                				<div class="height10"></div>
                                <p class="normal_txt"> Already a Member <br /><a class="red_link1" href="<?php echo site_url('directory/advertise')?>">log in here</a></p>
                            </div>
                    <?php }?>
        
        </div>